<?php
require_once('../phplib/include.inc.php');
require_once('../phplib/util/CheckLogin.inc.php');

class Admin_Savesubhome{
	public function DoSave(){
		$R = $_REQUEST;
		$s_name = $R['s_name'];
		$s_content = $R['content'];
		$sql = "UPDATE subhome SET s_content={0} WHERE s_name={1}";
		$arr = array($s_content,$s_name);
		$db = getDb();
		if(!$db->Execute($sql,$arr)) PageBase::Error("unknow error");
		PageBase::Go("../admin/subhome.php");
	}
}
$a = new Admin_Savesubhome();
$a->DoSave();
?>